package com.hsc.www.mybatis.soEasy.ee.crudMapper;

import com.hsc.www.mybatis.soEasy.ee.rr.BaseExample;
import com.hsc.www.mybatis.soEasy.ee.rr.Strategy;
import org.apache.ibatis.annotations.Param;

public interface UpdateBaseMapper<Entity, Example extends BaseExample> extends BaseMapper {

    int updateByPrimaryKey(@Param("entity") Entity entity,
                           @Param("strategy") Strategy strategy
    );

    int updateByExample(@Param("entity") Entity entity,
                        @Param("example") Example example,
                        @Param("strategy") Strategy strategy
    );


}
